package com.jiermt.M0516;

public class Lambda {
    public static void main(String[] args) {
        Animal animal = new Animal() {
            @Override
            public void cry() {
                System.out.println("喵喵");
            }
        };
        animal.cry();
    }
}
abstract class Animal {
    public abstract void cry();

}